﻿using System.Web.Mvc;

namespace XHD.WXZJ.Web.Areas.WXZJ
{
    public class WXZJAreaRegistration : AreaRegistration 
    {
        public override string AreaName 
        {
            get 
            {
                return "WXZJ";
            }
        }

        public override void RegisterArea(AreaRegistrationContext context) 
        {
            context.MapRoute(
                name:AreaName+"_default",
                url:AreaName+"/{controller}/{action}/{id}",
                defaults:new {Controller="WXZJHome", action = "Index", id = UrlParameter.Optional },
                namespaces: new[] { "XHD.WXZJ.WXZJ.Web.Controllers" }
            );
        }
    }
}